<?php

namespace Adapter;

class EBookAdapter implements PaperBookInterface
{

    protected $eBook;

    public function __construct(EBookInterface $ebook)
    {
        $this->eBook = $ebook;
    }

    public function open()
    {
        $this->eBook->pressStart();
    }
    
    public function turnPage()
    {
        $this->eBook->pressNext();
    }

}